<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Clean Blog - Start Bootstrap Theme</title>

    <!-- Bootstrap Core CSS -->
    <link href="lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">

    <!-- Additional fonts for this theme -->
    <link href="lib/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <link href='https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
    <link href='https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>

    <!-- Custom styles for this theme -->
    <link href="css/clean-blog.min.css" rel="stylesheet">

    <!-- Temporary navbar container fix until Bootstrap 4 is patched -->
    <style>
    .navbar-toggler {
        z-index: 1;
    }
    
    @media (max-width: 576px) {
        nav > .container {
            width: 100%;
        }
    }
    </style>

</head>

<body>

    <!-- Navigation -->
    <nav class="navbar fixed-top navbar-toggleable-md navbar-light" id="mainNav">
        <div class="container">
            <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
                Menu <i class="fa fa-bars"></i>
            </button>
            <a class="navbar-brand page-scroll" href="index.html">From bootstrap</a>
            <div class="collapse navbar-collapse" id="navbarResponsive">
                <ul class="navbar-nav ml-auto">
                    <li class="nav-item">
                        <a class="nav-link page-scroll" href="{{asset('create/shouye1')}}">首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link page-scroll" href="{{asset('update')}}">修改</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link page-scroll" href="{{asset('add')}}">添加</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link page-scroll" href="{{asset('select')}}">查找</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link page-scroll" href="{{asset('delete')}}">删除</a>
                    </li>
                    <li class="nav-item dropdown">
                       	
                       
                          
                    @if(Session::get('name'))
                            <a class="nav-link page-scroll dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"" href="#">
                            欢迎{{ Session::get('name') }}
                            </a>
                            @else
                            <a class="nav-link page-scroll" href="{{asset('create/login')}}">
                            登录
                            </a>
                            @endif
                  
                        <div class="dropdown-menu" aria-labelledby="dropdownMenuButton" style="margin-top: -10px;">
                            <form action="{{asset('create/exit')}}">
                            <input type="submit" class="dropdown-item " value="退出登录"></input>
                            </form>
                        </div>
                       </li>
                </ul>
            </div>
        </div>
    </nav>

    <!-- Page Header -->
    <header class="intro-header" style="background-image: url('img/about-bg.jpg')">
        <div class="container">
            <div class="row">
                <div class="col-lg-8 offset-lg-2 col-md-10 offset-md-1">
                    <div class="page-heading">
                        <h1>修改博客</h1>
                        <span class="subheading">update</span>
                    </div>
                </div>
            </div>
        </div>
    </header>

    @if(count($errors)>0)
    <div class="alert alert-danger">
        <ul>
            @foreach($errors->all() as $error)
            <li>{{$error}}</li>
            @endforeach
        </ul>
    </div>
    @endif
    <!-- Main Content -->
    <div class="container">
        <div class="row">
            <div class="col-lg-8 offset-lg-2 col-md-10 offset-md-1">
                <!-- <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Saepe nostrum ullam eveniet pariatur voluptates odit, fuga atque ea nobis sit soluta odio, adipisci quas excepturi maxime quae totam ducimus consectetur?</p>
                <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eius praesentium recusandae illo eaque architecto error, repellendus iusto reprehenderit, doloribus, minus sunt. Numquam at quae voluptatum in officia voluptas voluptatibus, minus!</p>
                <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nostrum molestiae debitis nobis, quod sapiente qui voluptatum, placeat magni repudiandae accusantium fugit quas labore non rerum possimus, corrupti enim modi! Et.</p> -->
                <form action="{{url('create/update')}}" method="post" class="form-group">
                    @csrf
                    <label for="title" class="sr-only">标题栏</label>
                    <input type="text" class="form-control @error('title') is-invalid @enderror" placeholder="标题栏" id="title" name="title">
                    @error('title')
                    <div class="alert alert-danger">{{$message}}</div>
                    @enderror
                    <label for="control" class="sr-only"></label>
                    <textarea name="control" id="control" cols="30" rows="10" class="form-control @error('control') is-invalid @enderror" name="control"></textarea>
                    @error('control')
                    <div class="alert alert-danger">{{$message}}</div>
                    @enderror
                    <label for="control" class="sr-only"></label>
                    <input type="text" name="author" placeholder="作者" class="form-control @error('author') is-invalid @enderror">
                    @error('author')
                    <div class="alert alert-danger">{{$message}}</div>
                    @enderror
                  <input type="submit" value="更改" class="btn btn-primary ">
                 
                </form>
            </div>
        </div>
    </div>

    <hr>

    <!-- Footer -->
    

    <!-- jQuery Version 3.1.1 -->
    <script src="lib/jquery/jquery.js"></script>

    <!-- Tether -->
    <script src="lib/tether/tether.min.js"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="lib/bootstrap/js/bootstrap.min.js"></script>

    <!-- Theme JavaScript -->
    <script src="js/clean-blog.min.js"></script>

</body>

</html>
